package com.Test.Controller;

import com.Test.Entity.User;
import com.Test.Mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
public class Test {
    @Autowired
    public UserMapper userMapper;
    public void testOne(){
        System.out.println(("----- selectAll method test ------"));
        //通过条件构造器来查询一个List集合，如果没有条件设置为null
        List<User> list=userMapper.selectList(null);
        for (User user:list){
            System.out.println(user.toString());
        }
    }
}
